package com.dusk.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;



@Data
@AllArgsConstructor
@NoArgsConstructor
public class House implements Serializable {
    private Integer id; //房屋id
    private String userUuid;   //户主uuid
    private String userName;  //用户名
    private String address;  //房屋地址
    private String unitHeight; //房屋楼层
    private String area;    //房屋面积
    private String type;    //房屋类型
    private String dwellingSize;    //房屋套型，例如1室1厅
    private String picture; //房屋图片
    private Integer status;  //房屋状态，1：租，2：售
    private String price;   // 房屋价格
    private String tel;     //联系电话
    private String description; //房屋描述
    private Double score;    //用户评分，总分5.0
    private Date createTime;  //创建时间
    private Date updateTime;  //更新时间
    private String  houseImage;  //图片路径

    public House(String userUuid, String userName, String address, String unitHeight, String area, String type, String dwellingSize, String picture, Integer status, String price, String tel, String description, Double score, Date createTime, Date updateTime,String houseImage) {
        this.userUuid = userUuid;
        this.userName = userName;
        this.address = address;
        this.unitHeight = unitHeight;
        this.area = area;
        this.type = type;
        this.dwellingSize = dwellingSize;
        this.picture = picture;
        this.status = status;
        this.price = price;
        this.tel = tel;
        this.description = description;
        this.score = score;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.houseImage = houseImage;
    }
}
